<div class="col-12 col-lg-3"> <div class="search-block"> <form class="data-filter"> <div class="position-relative"> <input type="text" class="form-control category-filter" name="q" placeholder="Enter your keywords..."> </div> </form> </div> <div class="widget"> <h4>Categories</h4> <ul class="list-style"> @foreach($categories as $category) <li> <a href="{{url('task')}}?category={{$category['slug']}}">{{$category['name']}}</a> <span>{{$category['count']}}</span> </li> @endforeach </ul> </div> <div class="widget"> <h4>Recently Added</h4> <ul class="latest-post position-relative"> @foreach($recent as $task) <li class="media"> <figure> <a href="{{trans_url('task')}}/{{@$task['slug']}}"> <img src="{{url($task['image'])}}" class="img-fluid" alt=""> </a> </figure> <div class="media-body"> <h5><a href="{{trans_url('task')}}/{{@$task['slug']}}" class="text-extra-dark-gray">{{$task['title']}}</a></h5> <span class="d-block">{{date('M d,Y', strtotime(@$task['published_at']))}}</span> </div> </li> @endforeach </ul> </div> <div class="widget"> <h4>Tags Cloud</h4> <div class="tag-cloud"> @foreach($tags as $tag) <a href="{{url('tasks')}}?tag={{$tag['slug']}}">{{$tag['name']}}</a> @endforeach </div> </div> </div>